package com.xxmw.transaction.task;

import com.xxmw.transaction.service.app.SymbolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author luowenliang
 * @since 2020/5/14 11:36
 */
@Slf4j
@Component
public class SymbolOpenPriceTask {

    @Autowired
    private SymbolService symbolService;

    /**
     * 每天0点更新交易对当天0点价格
     */
    public void updatePrice () {
        symbolService.cacheSymbolDayOpenPrice();
    }
}
